package com.jsd2412.backend.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum StatusCode {

    SUCCESS(2000, "OK"),
    OPERATION_SUCCESS(2002, "操作成功"),

    NOT_LOGIN(4000, "未登录"),

    USERNAME_NOT_EXISTS(4002, "用户名不存在"),
    USERNAME_PASSWORD_ERROR(4003, "用户名或密码错误"),

    OPERATION_FAILED(5001, "操作失败"),
    VALIDATED_ERROR(5002, "请求参数错误"),
    USERNAME_ALREADY_EXISTS(5003, "用户名被占用"),
    DATA_NOT_EXISTS(5004, "请求数据不存在"),

    THROWABLE_ERROR(6666, "未知异常");

    private Integer state;
    private String message;
}
